url = 'https://vod7eu16.128100.xyz/hls/zXPojuw112F/index.m3u8?token=M0xLVTlDSkRFcTJhbGlPTWVnR0VNRks0ZWc0SlFubEVWQnBVVVkyN0JvTjVHbFRTYXZnaGVISFJkSTJ5NHpPSmliTkNCbWY5bDZxUHBjcmtJU1ZxMGlSVU9oclhQemJFZnRGTkpTZ3lrcFVRZnVLbk9TYXh4NmZRVW8yWXpNN0o=&ip=47.242.233.182&auth=c114a6eaa05d07b652361a07d03e3fe5&exp=1609562535&hash=a0e1082e485ad6bafe762971af62a9b2&'

first = url.split('//')[1]
second = first.split('/')
host = second[0]
file_segment = '/' + second[1] + '/' + second[2] + '/'
last_segment = second[3]


print(host)
print(file_segment)
print(last_segment)